#pragma once
#include <Windows.h>
#include <d3d9.h>
#include <d3dx9.h>

class CTexture
{
public:
	// constructor & destructor
	CTexture(void);
	~CTexture(void);

	// methods
	void LoadTexture(LPDIRECT3DDEVICE9 d3ddev, LPD3DXSPRITE _dxSprite, char* path, D3DCOLOR transColor);

	void Draw(int x, int y);
	void Draw(int x, int y, float xScaleRotation, float yScaleRotation,D3DXVECTOR2 vRotateCenter, float angle, D3DCOLOR color, RECT* rSrc, float deep);

	// public variable
	LPDIRECT3DTEXTURE9 m_texture;
	LPD3DXSPRITE m_sprite;
	D3DXIMAGE_INFO m_ImageInfo;
	int m_iHeight, m_iWidth;
};

